# 全局通用配置
class Config(object):
    db_url = "mysql+pymysql://root:1234@localhost:3306/test_db"
    # 前端显示的条数
    page_count = 100
    # 配置一下文章图片的存储路径
    article_header_image_path = "/images/article/header/"
    email_name = 'liu-f-h@qq.com' # 服务邮箱
    passwd = 'qxlzkzwevoelcejj' # 授权码
    user_header_image_path = "/images/headers/" # 配置一下头像存储路径

# 测试环境
class TestConfig(Config):
    if_echo=True
    LOG_LEVEL = "DEBUG"


# 开发环境
class ProductionConfig(Config):
    if_echo = False
    LOG_LEVEL = "INFO"

config = {
    "test":TestConfig,
    "prop":ProductionConfig
}

